<link rel="stylesheet" href="/styles/default.css" />
<script type="text/javascript" src="/scripts/jquery-1.3.2.js"></script>
<script type="text/javascript" src="/lib/FCKeditor/fckeditor.js"></script>
<script>
	function validateForm()
	{

		if($('#content_type').val()==0){
			$('#divType').html($('#content_type').attr("title"));
			$('#divType').show('slow');
			$('#content_type').focus();
			return false;
		} else {
			$('#divType').html('');
		}
		if($('#ctitle').val()=='')
		{
			$('#cterror_msg').html('Please Enter News Title');
			return false;
		}
		else if(FCKeditorAPI.GetInstance('cdesc').GetXHTML()=='')
		{
			$('#cdeerror_msg').html('Please Enter News Description');
			return false;
		}
		
	}
</script>
<form action="/admin-mvc/news/manage/save" name="confrm" id="confrm" method="post" onsubmit="return validateForm();">
<input type="hidden" name="id" id="id" value="${id}" />
<input type="hidden" name="content_1" id="content_1" value="${cdesc}"/>
  <table width="100%" align="center" cellspacing="0" border="0">
  <tr><td align="center" colspan="2"><h1>Add News</h1></td></tr>
    <tr><td align="center" colspan="2">&nbsp;</td></tr>
	
   <tr>
      <td align="right" valign="top"><span style="color:#FF0000">*</span>News Title:</td>
      <td><input type="text" name="ctitle" id="ctitle" class="required" value="${ctitle}" size="80" />
      <div align="left" style="padding-top:15px;; font-size:13px; font-weight:bold; color:#FF0000" id='cterror_msg'></div>
      </td>
    </tr>
    <tr><td colspan="2"></td></tr>
    <tr>
      <td align="right" valign="top"><span style="color:#FF0000">*</span>Description:</td>
      <td width="80%"><script type="text/javascript">
var oFCKeditor = new FCKeditor('cdesc',700,500);
oFCKeditor.BasePath = "/lib/FCKeditor/";
oFCKeditor.Value = $('#content_1').val();
oFCKeditor.Create();

</script>
<div align="left" style="padding-top:15px;; font-size:13px; font-weight:bold; color:#FF0000" id='cdeerror_msg'></div></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="create" id="create" value="Submit" /></td>
    </tr>
  </table>
</form>
